package com.item.service;

import com.item.dao.EssenceCourseMapper;
import com.item.dao.model.EssenceCourse;
import com.item.dao.model.EssenceCourseExample;
import com.item.daoEx.EssenceCourseMapperEx;

import java.util.List;
import java.util.Map;

import org.apache.log4j.Logger;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class EssenceCourseService {
    @Autowired
    private EssenceCourseMapper essenceCourseMapper;
    
    @Autowired
    private EssenceCourseMapperEx essenceCourseMapperEx;

    private static final Logger logger = Logger.getLogger(EssenceCourseService.class);

    public int countByExample(EssenceCourseExample example) {
        return this.essenceCourseMapper.countByExample(example);
    }

    public EssenceCourse selectByPrimaryKey(String id) {
        return this.essenceCourseMapper.selectByPrimaryKey(id);
    }

    public List<EssenceCourse> selectByExample(EssenceCourseExample example) {
        return this.essenceCourseMapper.selectByExample(example);
    }

    public int deleteByPrimaryKey(String id) {
        return this.essenceCourseMapper.deleteByPrimaryKey(id);
    }

    public int updateByPrimaryKeySelective(EssenceCourse record) {
        return this.essenceCourseMapper.updateByPrimaryKeySelective(record);
    }

    public int updateByPrimaryKey(EssenceCourse record) {
        return this.essenceCourseMapper.updateByPrimaryKey(record);
    }

    public int deleteByExample(EssenceCourseExample example) {
        return this.essenceCourseMapper.deleteByExample(example);
    }

    public int updateByExampleSelective(EssenceCourse record, EssenceCourseExample example) {
        return this.essenceCourseMapper.updateByExampleSelective(record, example);
    }

    public int updateByExample(EssenceCourse record, EssenceCourseExample example) {
        return this.essenceCourseMapper.updateByExample(record, example);
    }

    public int insert(EssenceCourse record) {
        return this.essenceCourseMapper.insert(record);
    }

    public int insertSelective(EssenceCourse record) {
        return this.essenceCourseMapper.insertSelective(record);
    }
    
    public List<EssenceCourse> getEssenceCourseByDeaprt(Map<?,?> map){
    	return this.essenceCourseMapperEx.getEssenceCourseByDeaprt(map);
    }
}